package com.ruoyi.whc.domain;

import com.ruoyi.common.annotation.Excels;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 密接人员记录对象 nearman
 * 
 * @author whc
 * @date 2022-09-22
 */
public class Nearman extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 密接人员id */
    private Long nmid;

    /** 用户id */
    @Excel(name = "用户id")
    private Long uid;

    /** 出行id */
    @Excel(name = "出行id")
    private Long trid;


    /** 用户 */
    @Excels({
            @Excel(name = "用户名", targetAttr = "uname", type = Excel.Type.EXPORT),
            @Excel(name = "注册时间", targetAttr = "regtime", type = Excel.Type.EXPORT),
            @Excel(name = "微信号", targetAttr = "phone", type = Excel.Type.EXPORT),
            @Excel(name = "性别", targetAttr = "sex", type = Excel.Type.EXPORT),
    })
    private User user;
    /** 接触的阳性人员行程记录*/
    @Excels({
            @Excel(name = "用户id", targetAttr = "uid", type = Excel.Type.EXPORT),
            @Excel(name = "用户名", targetAttr = "uname", type = Excel.Type.EXPORT),
            @Excel(name = "日期", targetAttr = "date", type = Excel.Type.EXPORT),
            @Excel(name = "时间", targetAttr = "time", type = Excel.Type.EXPORT),
            @Excel(name = "地址", targetAttr = "address", type = Excel.Type.EXPORT),
            @Excel(name = "体温", targetAttr = "temp", type = Excel.Type.EXPORT),
            @Excel(name = "经度", targetAttr = "longitude", type = Excel.Type.EXPORT),
            @Excel(name = "纬度", targetAttr = "latitude", type = Excel.Type.EXPORT),
    })
    private Note note;

    private String uname;
    private String address;
    private String uyid;

    public String getUyid() {
        return uyid;
    }

    public void setUyid(String uyid) {
        this.uyid = uyid;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Note getNote() {
        return note;
    }

    public void setNote(Note note) {
        this.note = note;
    }

    public void setNmid(Long nmid)
    {
        this.nmid = nmid;
    }

    public Long getNmid() 
    {
        return nmid;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setTrid(Long trid) 
    {
        this.trid = trid;
    }

    public Long getTrid() 
    {
        return trid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("nmid", getNmid())
            .append("uid", getUid())
            .append("trid", getTrid())
            .toString();
    }
}
